﻿using System;
using System.Windows.Forms;

namespace Just4Devs.Vsirc.Addin.UI
{
	public class VsircPrivateConversation : VsircTab
	{
		public VsircPrivateConversation(string name,
			VsircScreenDirector screenDirector)
		{			
			this.Name = name;
			this.Text = name;
			_screenDirector = screenDirector;
			_privateScreen = new VsircChatScreen();
			_privateScreen.Dock = DockStyle.Fill;
			this.Controls.Add(_privateScreen);
		}

		#region IVsircTab Members

		public override void HandleMessage(ScreenMessage message)
		{
			_privateScreen.HandleMessage(message);
		}

		#endregion

		private VsircChatScreen _privateScreen;
		private VsircScreenDirector _screenDirector;

	}
}
